home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / VideoToolbox 97.08.16 / (Utilities) / ReadLuminanceMeter / Read me < prev    next >
Encoding:
Text File  |  1997-03-06  |  5.0 KB  |  112 lines  |  [TEXT/ttxt]

  1. ************************************************************************    
  2.    ReadLuminanceMeter package
  3. ************************************************************************    
  4.  
  5. The Minolta LS-110 luminance meter has a serial (RS-232) output which can be read by any computer that you can  connect a modem to. This file contains routines to do this using a macintosh (or a pc). Note that these routines are not provided by Minolta™ so don't contact them about it.  You'll need to make a connector cable that can be plugged into the Minolta on one side and on the other side a Macintosh or PC serial connector. The basic operations to achieve this are simple and explained in the luminance.c file.
  6.  
  7.     This package should include:
  8.     
  9. Read me file
  10. ReadLuminanceMeter.c            C routines for macintosh computer
  11. ReadLuminanceMeter.h            include file for mac
  12. ReadLuminanceMeter.µ             small example project (CW 11) for a program
  13. main.c                           c source code for readLuminanceMeter example program
  14.     
  15. In PC folder
  16. Minolta_PC.C            routines that should work on a pc
  17.  
  18. *************************************************************************    
  19.  
  20. Mac version:
  21. Made by Frans W. Cornelissen, with suggestions from Lars Jansen, Eli Brenner and Hiro Akutsu. Please send suggestions, bugs, improvements, comments to f.w.cornelissen@med.rug.nl.
  22.  
  23. PC version:
  24. The PC version was made by Erik van Wijk, based on the first mac version. Contact him at wijk@fys1.fgg.eur.nl. I don't know much about pc's and prefer to keep it that way.
  25.  
  26. Mac version Copyright ©1997 Frans W. Cornelissen. PC version Copyright ©1995 Erik van Wijk. These routines are not provided by Minolta™ so don't contact them about it. The accompanying software is free; you may use it in your research and give it away to others, with the following restrictions. Any copy you give away must include this paragraph, unmodified,
  27. and any file that you have changed must include a note, giving your name, the date, and a description of the changes. May be distributed for non-commercial purposes. This software may not be sold, whether in source or compiled form, without my permission. I would appreciate reports of bugs and improvements.
  28.  
  29. DISCLAIMER:
  30. The software is provided "as is" without warranty of any kind. I make no claims concerning the accuracy or correctness of the computer code contained in, or the results of the use of this software. The entire risk as to the results and performance of it is assumed by you.
  31.  
  32.     
  33. Please send suggestions, bugs, improvements, comments to:
  34.  
  35.     Frans W. Cornelissen
  36.     Laboratory for Experimental Ophthalmology (LEO)
  37.     University of Groningen
  38.     P.O. Box 30.001, 9700 RB  Groningen, The Netherlands
  39.     Tel:  + 31 50 614173 (work)
  40.     Fax: + 31 50 696743 (work)
  41.     E-mail: f.w.cornelissen@med.rug.nl
  42.  
  43.     
  44. *************************************************************************    
  45.  
  46. Making a cable:
  47.  
  48. The basic idea is that you connect the data out to the receive data pin of the computer, and use the DTR (data terminal ready) line of the serial port to send measurement requests. We'll keep the busy line high all the time (so the meter immediately outputs the data), by connecting the busy line (black) to the +5v (yellow). The last thing to do is to GND the meter to one of the GND's of the computer.
  49.  
  50. You'll have to get a RP17-13P-12PC connector to connect your computer to the MInolta. Minolta offers this connector only as part of a special cable (about $40), perhaps a good electronics store might carry it too). The colours refer to this special cable.
  51.  
  52. Minolta pin lay out (Hirose RP17-13RA-12SD connector). 
  53. Pin#    Function            Wire Colour
  54. 1        GND                    brown
  55. 2        GND
  56. 3        Busy                black
  57. 4        n.c.
  58. 5        External power
  59. 6        Null offset
  60. 7        n.c.
  61. 8        Data out            red
  62. 9        n.c.
  63. 10        Clock out
  64. 11        Measurement request
  65. 12        +5v                 yellow
  66.  
  67. Here's how to create a minolta to mac connector (thanks to Hiro Akutsu for figuring this out):
  68. Mac
  69. 1    RTS & DTR
  70. 2    CTS
  71. 3    TD (transmit)
  72. 4    GND
  73. 5    RD (receive)
  74. 6    ??
  75. 7    CD
  76. 8    GND
  77.  
  78.  Minolta #1 or Minolta#2 to Mac Modem port #4 (GND).
  79.  Minolta #8 (Data out) to Mac 's #5 (receive).
  80.  Minolta #11 (measurement request) to Mac #1 (DTR)
  81.  Minolta #3 to #12 (busy to +5V) (keep's busy signal high)
  82.  
  83. In my own setup I use a Minolta to RS232 9 PIN D-Connector, and connect that to the mac via a 9  pin to a DB25 pin converter, and then to the mac via a standard modem cable. In this way, we can use the cable also to connect the meter to pc's.
  84. RS232 9 PIN connections:
  85.  
  86. pin
  87. 1 (DCD)
  88. 2 (RD)
  89. 3 (TD)
  90. 4 (DTR)
  91. 5 (GND)
  92. 6 (DSR)
  93. 7 (RTS)
  94. 8 (CTS)
  95. 9 (??)
  96.  
  97. Here's how to create a minolta to a standard 9 PIN D-Connector:
  98.  
  99.  Minolta #1 (brown) or Minolta#2 to pin 5 (GND)
  100.  Minolta #8 (red) (Data out) to to pin 2 (receive).
  101.  Minolta #11 (white) (measurement request) to pin 4 (DTR)
  102.  Minolta #3 (yellow) to #12 (black) (busy to +5V) (keep's busy signal high)
  103.  
  104. According to Eric van Wijk you also need to do this:
  105. On RS232 plug:
  106.   7 to 8 (RTS to CTS)
  107.   1 to 6 and also to 4 (DCD to DSR to DTR)
  108. I haven't checked this, but he got it working, so I guess it's okay.
  109.  
  110. ************************************************************************
  111.  
  112.